package cn.source.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.source.common.annotation.Excel;
import cn.source.common.core.domain.BaseEntity;

/**
 * 用户管理对象 aa_user
 * 
 * @author sourcebyte.vip
 * @date 2023-08-04
 */
public class AaUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户主键 */
    private Long id;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 用户密码 */
    @Excel(name = "用户密码")
    private String userPassWord;

    /** 用户等级 */
    @Excel(name = "用户等级")
    private Integer userLevel;

    /** 用户积分 */
    @Excel(name = "用户积分")
    private BigDecimal userIntegral;

    /** 用户状态 0 正常 1冻结 */
    @Excel(name = "用户状态 0 正常 1冻结")
    private Integer userStatus;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date registerDate;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date loginDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserPassWord(String userPassWord) 
    {
        this.userPassWord = userPassWord;
    }

    public String getUserPassWord() 
    {
        return userPassWord;
    }
    public void setUserLevel(Integer userLevel) 
    {
        this.userLevel = userLevel;
    }

    public Integer getUserLevel() 
    {
        return userLevel;
    }
    public void setUserIntegral(BigDecimal userIntegral) 
    {
        this.userIntegral = userIntegral;
    }

    public BigDecimal getUserIntegral() 
    {
        return userIntegral;
    }
    public void setUserStatus(Integer userStatus) 
    {
        this.userStatus = userStatus;
    }

    public Integer getUserStatus() 
    {
        return userStatus;
    }
    public void setRegisterDate(Date registerDate) 
    {
        this.registerDate = registerDate;
    }

    public Date getRegisterDate() 
    {
        return registerDate;
    }
    public void setLoginDate(Date loginDate) 
    {
        this.loginDate = loginDate;
    }

    public Date getLoginDate() 
    {
        return loginDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("userPassWord", getUserPassWord())
            .append("userLevel", getUserLevel())
            .append("userIntegral", getUserIntegral())
            .append("userStatus", getUserStatus())
            .append("registerDate", getRegisterDate())
            .append("loginDate", getLoginDate())
            .toString();
    }
}
